package cn.example.zjgsu.dao;

import cn.example.zjgsu.pojo.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShopMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Shop record);

    Shop selectByPrimaryKey(Integer id);

    List<Shop> selectAll();

    int updateByPrimaryKey(Shop record);


    List<Shop> selectCityShop(Integer id);

    Shop getFoodByShopId(Integer id);

    String getCityNameByShopName(String name);

}